Light casting and refraction